var express = require('express');
var router = express.Router();

var apiRoutes = require('./apis');
var pageRoutes = require('./pages');

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Watermelon backend' });
});

router.use('/', pageRoutes);
router.use('/api/', apiRoutes);

module.exports = router;
